<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>hello world</title>
    <script type="text/javascript" src="../assests/js/vue.js"></script>
</head>
<body>
    <h1>VUE--实例</h1>
    <hr>
    <div id="app">
        <lzm>
            <span slot="url">{{ data1.webUrl }}</span>
            <span slot="name">{{ data1.name }}</span>
            <span slot="skill">{{ data1.skill }}</span>
        </lzm>
    </div>
    <template id="tpl">
        <div>
            <p>url:  <slot name="url"></slot></p>
            <p>name: <slot name="name"></slot></p>
            <p>技能： <slot name="skill"></slot></p>
        </div>
    </template>
    <script>
        var app = new Vue({
            el:"#app",
            data:{
                data1:{
                    webUrl:"www.baidu.com",
                    name:"panda",
                    skill:"javascript"
                }
            },
            components:{
                "lzm":{
                    template:"#tpl"
                }
            }
        });
    </script>
</body>
</html>